package com.wangzhen.abstractroutingdatasource.service;

import com.wangzhen.abstractroutingdatasource.entity.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author dell
 * @since 2021/7/6 10:30
 */
public interface UserService {

    boolean insertUser(User user);

    List<User> findAll();

    User findById(Integer userId);
}
